package com.cheng.im.common.constants;

/**
 * redis中存储的序列号常量值
 * 全局唯一，所有用户公用
 */
public class SeqConstants {

    // appid:messageSeq:fromid|toid   单聊序列号    fromid|toid也可能是toid|fromid，主要看谁id大谁前面
    public static final String P2P_MESSAGE = "messageSeq";

    // appid:groupMessageSeq:groupId    群聊序列号
    public static final String GROUP_MESSAGE = "groupMessageSeq";

    // appid:friendshipSeq     好友申请
    public static final String FRIENDSHIP = "friendshipSeq";

    // appid:friendshipRequestSeq     好友申请序列号
    public static final String FRIENDSHIP_REQUEST = "friendshipRequestSeq";

    // appid:friendshipGroupSeq
    public static final String FRIENDSHIP_GROUP = "friendshipGroupSeq";

    // appid:groupSeq
    public static final String GROUP = "groupSeq";

    // appid:conversationSeq
    public static final String CONVERSATION = "conversationSeq";
}
